package com.mingdong.first.shipeiqi.adapter;

import com.mingdong.first.shipeiqi.duck.Duck;
import com.mingdong.first.shipeiqi.turkey.Turkey;

public class TurkeyAdapter implements Duck {

	private Turkey turkey;
	
	public TurkeyAdapter(Turkey turkey){
		
		this.turkey = turkey;
	}
	
	public void quack() {
		turkey.gobble();
	}

	public void fly() {
		for(int i = 0; i < 6;i++){			
			turkey.fly();
		}
	}

}
